package com.ls.pattern.structure.adapter.object_adapter;


public class Phone {
    public void charging(IVoltage5V v) {
        if (v.output5V() == 5){
            System.out.println("电压5V 可以充电");
        }else {
            System.out.println("电压不对 充电失败");
        }

    }
}
